import { createRouter, createWebHistory } from 'vue-router';
import Dashboard from '@v/dashboard/index.vue';

// User
import User from '../views/user/index.vue';
import Complaint from '../views/complaint/index.vue';
import Examine from '../views/examine/index.vue';

// Store
import Store from '../views/store/index.vue';

//Enterprise
import Enterprise from '../views/enterprise/index.vue';
import EnterpriseStaff from '../views/enterprise/staff/index.vue';

// Goods
import Goods from '../views/goods/list/index.vue';
import GoodsCategory from '../views/goods/category/index.vue';

// Order
import Order from '../views/order/index.vue';
import Invoice from '../views/invoice/index.vue';

// Health
import Health from '../views/health/index.vue';

// mini
import MiniConfig from '../views/mini/index.vue';

import ImageText from '../views/imageText/index.vue';

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      component: Dashboard
    },
    {
      path: '/user',
      component: User
    },
    {
      path: '/complaint',
      component: Complaint
    },
    {
      path: '/examine',
      component: Examine
    },
    {
      path: '/store',
      component: Store
    },
    {
      path: '/enterprise',
      component: Enterprise
    },
    {
      path: '/enterprise/staff',
      component: EnterpriseStaff
    },
    {
      path: '/goods',
      component: Goods
    },
    {
      path: '/goods/category',
      component: GoodsCategory
    },
    {
      path: '/order',
      component: Order
    },
    {
      path: '/health',
      component: Health
    },
    {
      path: '/mini/config',
      component: MiniConfig
    },
    {
      path: '/imagetext/config',
      component: ImageText
    },

    {
      path: '/invoice',
      component: Invoice
    }
  ]
});
export default router;
